<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title></title>
    </head>
    <body>
        <?php
        ini_set('max_execution_time', 60);
        echo ini_get('max_execution_time');
        function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}



       $link=mysql_connect('localhost','root','');
       if(!$link){
           die('Error: '.mysql_error());
       }
       echo 'Connected ';
       
       $db = mysql_select_db('cdcol',$link) or die('Nie da sie'. mysql_error());
       mysql_set_charset ('utf8');
       //echo mysql_client_encoding();
       if(!$db){
           die(' Nie da sie.'.  mysql_error());
       }
       $rest= mysql_query("SELECT warczar from tabelaInno");       
       if (!$rest){
           die('qda  : '.mysql_error());
       }
       $rowt = mysql_fetch_row($rest);
       echo $rowt[0];
       echo ' ';
       $time_start = microtime_float();
       for($i =0;$i<100000;$i++)
       {

            $res= mysql_query("INSERT INTO tabelaInno VALUES('1','2','abrakadabralakazambumckfshhh') ");       
           if (!$res){
               die('qda  : '.mysql_error());
           }
       }
       $time_end = microtime_float();
$time = $time_end - $time_start;

echo "$time seconds\n";
       $res= mysql_query("SELECT tekst from tabelaIsam");       
       if (!$res){
           die('qda  : '.mysql_error());
       }
       $row = mysql_fetch_row($res);
       echo $row[0];
       
    
    
    mysql_close($link);
       ?>
    </body>
</html>
